import postApiNew from '../../utils/http/api-new'

export default {
  //3.1 自定义首页显示的专题
  getLevelSubjectByIdsList(list) {
    return postApiNew({
      actionCode: "zhiye-media",
      path: "/level/subject/getLevelSubjectByIdsList",
      requestData: {
        'ids': list
      },
    })
  },
  //3.2 企业专题详情接口
  getOrgLevelSubjectDetailById(id) {
    return postApiNew({
      actionCode: "zhiye-media",
      path: "/level/subject/getOrgLevelSubjectDetailById",
      requestData: {
        'id': id
      },
    })
  },
  //3.3 企业专题内容接口
  getSubjectContain(subjectId,type) {
    return postApiNew({
      actionCode: "zhiye-media",
      path: "/level/plan/getSubjectContain",
      requestData: {
        'subjectId' : subjectId,
        'type' : type
      },
    })
  },
  //3.4 企业专题分类列表接口
  getPackageList(id) {
    return postApiNew({
      actionCode: "zhiye-media",
      path: "/level/package/getPackageList",
      requestData: {
        'id': id
      },
    })
  },
  //3.5 企业根据分类id查询专题列表接口
  getAllSubjectByPackageId(packageId) {
    return postApiNew({
      actionCode: "zhiye-media",
      path: "/level/package/getAllSubjectByPackageId",
      requestData: {
        'packageId': packageId
      },
    })
  },
  //4.1会道TAB&练习记录URL
  getHuidaoUrl() {
    return postApiNew({
      actionCode:"zhiye-huidao",
      path:"/hft/tab/getHuidaoUrl",
      requestData: {},
    })
  },
  //4.2会道专题内容URL
  getSubjectHuidaoContainUrl(subjectId) {
    return postApiNew({
      actionCode:"zhiye-huidao",
      path:"/hft/tab/getSubjectHuidaoContainUrl",
      requestData: {
        subjectId
      },
    })
  },


}
